#include "information.h"

Information::Information(QString sector_information, double freq)
    : sector_information_(sector_information)
    , frequency_(freq)
    , is_inter_modulation_(false)
    , inter_modulation_frequency_(0.0)
{
}

Information::Information(const Information &value)
    : sector_information_(value.sector_information_)
    , frequency_(value.frequency_)
    , is_inter_modulation_(value.is_inter_modulation_)
    , inter_modulation_frequency_(value.inter_modulation_frequency_)
{

}

Information &Information::operator =(const Information& rvalue)
{
    sector_information_ = rvalue.sector_information_;
    frequency_ = rvalue.frequency_;
    is_inter_modulation_ = rvalue.is_inter_modulation_;
    inter_modulation_frequency_ = rvalue.inter_modulation_frequency_;

    return *this;
}

QString Information::get_sector_information() const
{
    return sector_information_;
}

double Information::get_frequency() const
{
    return frequency_;
}

int Information::get_element_count() const
{
    return 4;
}

bool Information::get_is_inter_modulation() const
{
    return is_inter_modulation_;
}

void Information::set_is_inter_modulation(bool is_inter_modulation)
{
    is_inter_modulation_ = is_inter_modulation;
}

double Information::get_inter_modulation_frequency() const
{
    return inter_modulation_frequency_;
}

void Information::set_inter_modulation_frequency(double inter_modulation_frequency)
{
    inter_modulation_frequency_ = inter_modulation_frequency;
}
